interface StringArray {
    [index:number]: string
}

let myArray: StringArray
myArray = ['bob','fred']
let myStr:string = myArray[0]